package com.awspaas.user.apps.publicservice.util;

import java.util.HashMap;
import java.util.Map;

/**
 * @Title: codeGetDesc
 * @Package com.awspaas.user.apps.publicservice.util.codeGetDesc
 * @Description:通过code获取返回码描述
 * @Author wanglx
 * @Date 2022/8/1
 */
public class CodeUtil {
        public static String codeGetDesc(String code){
            Map<String,String> map = new HashMap<>();
            map.put("200","成功");
            map.put("400","错误的参数请求");
            map.put("401","未授权被拒绝");
            map.put("403","访问被拒绝");
            map.put("404","流程或环节不存在");
            map.put("405","请求方法不允许");
            map.put("408","资源请求超时");
            map.put("500","发生异常");
            map.put("521","传输转换错误");
            map.put("590","AWS INSTANCE SERVER连接失败");
            map.put("760","服务正在启动");
            map.put("761","服务正在关闭");
            map.put("762","服务脱机");
            map.put("770","应用正在启动");
            map.put("771","应用正在关闭");
            map.put("774","应用出错暂停");
            map.put("800","许可配额限制");

            String desc = map.get(code);
            return desc;
        }
}